//
//  HttpDownLoadBlock.h
//  HttpDemo2_1518
//
//  Created by 张诚 on 15/7/13.
//  Copyright (c) 2015年 zhangcheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface HttpDownLoadBlock : NSObject<NSURLConnectionDataDelegate>
//保存请求的结果
@property(nonatomic,strong)NSMutableData*data;
//记录请求的地址 该地址是经过加密的文件名
@property(nonatomic,copy)NSString*path;


//解析结果
@property(nonatomic,strong)NSDictionary*dataDic;
@property(nonatomic,strong)NSArray*dataArray;
@property(nonatomic)UIImage*dataImage;

//block指针
@property(nonatomic,copy)void(^downLoad)(BOOL,HttpDownLoadBlock*);

//请求的指针
@property(nonatomic)NSURLConnection*myConnection;

//调用的方法
-(id)initWithUrlStr:(NSString*)urlStr Block:(void(^)(BOOL,HttpDownLoadBlock*))a;




@end
